package Template::Plugin::GoogleChart;

use strict;
use warnings;
use Google::Chart;


our $VERSION = '0.01';


use base qw(Template::Plugin);


sub new_chart { Google::Chart->new }


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - Using Google::Chart as a template plugin

=head1 SYNOPSIS

    [% USE c = GoogleChart %]
    [% chart = c.new_chart %]
    [% ... set up chart ... %]
    [% chart.img_tag %]

=head1 DESCRIPTION

=head1 METHODS

=over 4

=item new_chart

Returns a new L<Google::Chart> object. See its documentation for how to use
the chart object. You will probably want to write out the URL with the chart
object's C<get_url()> method or write out the C<IMG> tag with C<img_tag()> as
shown in the synopsis.

=back

{% p.write_inheritance %}

{% PROCESS standard_pod %}

=cut

